package lab02.test35;

/**
 * Created by lenovo on 2017/11/16.
 */
public class Salesman extends Employee {

    double baseSalary;
    int sales;
    double unitSalary;
    public Salesman(String name,double baseSalary,int sales,double unitSalary){
        super(name);
        this.baseSalary=baseSalary;
        this.unitSalary=unitSalary;
        this.sales=sales;
    }

    @Override
    public double computeSalary() {
        return baseSalary+sales*unitSalary;
    }
}
